<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../../js/jquery-3.7.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				//ready函数文档数加载完毕开始执行
				$("button").click(function(){
					$("div:first").text("ok")
					$("#txt").text("okk")
					$(".txt").html("<b>okk</b>")
				})
				
			})
		</script>
	</head>
	<body>
		<button type="button">改变文本</button>
		<div>文本</div>
		<div id="txt">文本1</div>
		<div class="txt">文本2</div>
		<div class="txt">文本2</div>
		<div class="txt">文本2</div>
	</body>
</html>
